package com.ch.demo1;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class demo5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        Pattern pattern = Pattern.compile("\\d{4}\\d{3}[0]\\d\\d{2}");
        Matcher matcher = pattern.matcher(s);
        String s1 = s.substring(0, 4);
        String s2 = "";
        String s3 = s.substring(7, 9);
        String s4 = s.substring(9);
        if (matcher.find()) {
           if (Integer.parseInt(s.substring(4, 7)) == 34) {
                s2 = "网络工程";
               System.out.println(String.format("%s届%s%s班%s号", s1, s2, s3, s4));
            } else if (Integer.parseInt(s.substring(4, 7)) == 44) {
                s2 = "软件工程";
               System.out.println(String.format("%s届%s%s班%s号", s1, s2, s3, s4));
            } else if (Integer.parseInt(s.substring(4, 7)) == 54) {
                s2 = "物联网工程";
               System.out.println(String.format("%s届%s%s班%s号", s1, s2, s3, s4));
            } else if (Integer.parseInt(s.substring(4, 7)) == 64) {
                s2 = "计算机科学与技术";
               System.out.println(String.format("%s届%s%s班%s号", s1, s2, s3, s4));
            } else if (Integer.parseInt(s.substring(4, 7)) == 74){
                s2 = "大数据";
               System.out.println(String.format("%s届%s%s班%s号", s1, s2, s3, s4));
            } else {
                System.out.println("没有相应的专业!");
            }
        } else {
            System.out.println("该学号不符合规则!");
        }

    }
}
